package com.example.service.impl;

import com.example.dao.UserRoleDao;
import com.example.pojo.user.UserRole;
import com.example.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRoleServiceImpl implements UserRoleService {
    @Autowired
    UserRoleDao userRoleDao;

    @Override

    public int deleteUserRole(UserRole userRole) {
        return userRoleDao.deleteUserRole(userRole);
    }

    @Override
    public int insert(UserRole record) {
        return userRoleDao.insert(record);
    }

    @Override
    public int insertSelective(UserRole record) {
        return userRoleDao.insertSelective(record);
    }

    @Override
    public List<UserRole> selectByPrimaryKey(String uuid) {
        return userRoleDao.selectByPrimaryKey(uuid);
    }

    @Override
    public int updateByPrimaryKeySelective(UserRole record) {
        return userRoleDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserRole record) {
        return userRoleDao.updateByPrimaryKey(record);
    }
}
